package common;

import java.rmi.*;

import server.Client;

import client.game.TicTacToeButton;

import model.Message;
import model.ServerButton;
import model.exceptions.*;

public interface ClientInterface extends Remote {
	void userLoggedin(String name) throws RemoteException;

	void userLoggedout(String name) throws RemoteException;

	void takeMessage(Message message) throws RemoteException;
	
	void takeChat(Message message) throws RemoteException;

	void startConversation(String name) throws RemoteException, AbstractException;

	void endConversation() throws RemoteException;

	void takeButton(ServerButton button) throws RemoteException;

	void takeInfo(String text) throws RemoteException;

	void serverClosed() throws RemoteException;

	void resetButtons(boolean myTurn) throws RemoteException;
}